package com.rem.springboot1.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author Rem
 * @date 2021-03-18
 */


@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {

    @NotBlank(message = "name can't null")
    private String name;


    @NotNull(message = "年龄不能为空")
    private Integer age;

}
